//
//  RNMZhiFuCGVC.m
//  大股票
//
//  Created by apple on 2019/9/5.
//  Copyright © 2019 apple. All rights reserved.
//

#import "RNMZhiFuCGVC.h"

@interface RNMZhiFuCGVC ()

@property (nonatomic, strong) UIView *contentView;
@property (weak, nonatomic) IBOutlet UIButton *sureBtn;

@end

@implementation RNMZhiFuCGVC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = UIColor.whiteColor;
    
    [self setupSubViews];
    
    //    [self setupSubViews];
    
}

- (void)createNavi {
    [self setupNavi_White];
    self.navigationItem.title = @"支付确认";
}


- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    [self createNavi];
    
}

- (void)setupSubViews {
    [self.view addSubview:self.contentView];
    [self updateUIAfterLoadNib];
}

#pragma mark - 创建rightView
- (UIView *)createRightViewWithTitle:(NSString *)title {
    UILabel *leftLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 60, 28)];
    leftLabel.textColor = UIColor.lightGrayColor;
    leftLabel.font = [UIFont systemFontOfSize:16];
    leftLabel.textAlignment = NSTextAlignmentRight;
    leftLabel.text = title;
    UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 70, 28)];
    [view addSubview:leftLabel];
    return view;
}

- (void)updateUIAfterLoadNib {
    
    self.sureBtn.layer.cornerRadius = 8.0f;
    self.sureBtn.layer.masksToBounds = YES;
   
    
}


- (IBAction)sureAction:(id)sender {
    [self.navigationController popToRootViewControllerAnimated:YES];
}


#pragma mark - getter

- (UIView *)contentView {
    if (!_contentView) {
        UINib *nib = [UINib nibWithNibName:@"HHYUploadApplyView" bundle:nil];
        NSArray *objs = [nib instantiateWithOwner:self options:nil];
        _contentView = objs[0];
        _contentView.frame = CGRectMake(0, 0, hhy_kScreenWidth, 764);
    }
    return _contentView;
}

@end
